/* SVN Info:
 * $HeadURL: http://jkad.googlecode.com/svn/trunk/JKad/src/jkad/controller/threads/systemaccess/FindThread.java $
 * $LastChangedRevision: 54 $
 * $LastChangedBy: polaco $                             
 * $LastChangedDate: 2006-11-13 02:11:22 +0000 (Mon, 13 Nov 2006) $  
 */
package jkad.controller.threads.systemaccess;

import jkad.controller.handlers.Controller;

public class FindThread extends AccessThread
{
    private byte[] key;
    private byte[] result;
    
    protected FindThread(ThreadGroup group, Controller controller, byte[] key)
    {
        super(group, controller);
        this.key = key;
        this.result = null;
    }

    public void run()
    {
        result = this.controller.findValue(key);
    }
    
    public byte[] getValue()
    {
        return this.result;
    }

}
